import Vue from 'vue'
import { Button,Form,FormItem,Input,Row,Col,Switch,Tooltip,Select,Option,
    Table,TableColumn,Pagination,Upload,Cascader


} from 'element-ui'

import {  Message,Loading } from 'element-ui'


// import 'element-ui/lib/theme-chalk/index.css'

// Vue.use(Button)
Vue.component(Button.name,Button)
Vue.component(Form.name,Form)
Vue.component(FormItem.name,FormItem)
Vue.component(Input.name,Input)
Vue.component(Row.name,Row)
Vue.component(Col.name,Col)
Vue.component(Switch.name,Switch)
Vue.component(Tooltip.name,Tooltip)
Vue.component(Message.name,Message)
Vue.component(Select.name,Select)
Vue.component(Option.name,Option)
Vue.component(Table.name,Table)
Vue.component(TableColumn.name,TableColumn)
Vue.component(Pagination.name,Pagination)
Vue.component(Upload.name,Upload)
Vue.component(Cascader.name,Cascader)


Vue.use(Loading.directive);


Vue.prototype.$message = Message;
Vue.prototype.$loading = Loading.service;